package com.aaa.tars.service;

import com.aaa.tars.entity.Refund;
import com.aaa.tars.util.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @FileName: RefundService
 * @Description:
 * @Author: ghz
 * @CreateTime:2025/9/12 14:11
 * @Version:1.0.0
 */
public interface RefundService {
    Refund queryById(Integer refundId);
    PageInfo queryByPage(Page<Refund> page);
    int insert(Refund refund);
    int update(Refund refund);
    int deleteById(Integer refundId);
    
    /**
     * 根据订单号查询退款记录
     * @param orderNo 订单号
     * @return 退款记录列表
     */
    List<Refund> queryByOrderNo(String orderNo);
}
